import request from "@/utils/request.js";

export default {
  // 获取订单列表
  getOrder() {
    return request({
      url: "order/order_list_admin",
      method: "get",
    });
  },
  // 查询订单
  searchOrder(pojo) {
    return request({
      url: "order/searchOrder",
      method: "post",
      data: pojo,
    });
  },
  // 删除订单
  deleteOrder(id) {
    return request({
      url: `order/deleteOrder?id=${id}`,
      method: "delete",
    });
  },
  // 查询交易流程
  searchProcess(id) {
    return request({
      url: `order/order_process?order_id=${id}`,
      method: "get",
    });
  },
};
